#ifndef _imageconv_h
#define _imageconv_h

#include <windows.h>
long Buffer_SaveRGBToBmp(char *filename,long sx,long sy,long xl,long yl,BYTE *bitmap);
BOOL Buffer_SaveRGBToJpg(	BYTE* pBitmap,
					DWORD dwWidth,
					DWORD dwHeight,
					char* pszJpgFilename,
					int nQuality );
BYTE* Buffer_ConvertARGBToRGB( DWORD* pdwARGB, DWORD dwWidth, DWORD dwHeight );
DWORD Buffer_CompressARGBAlphaChannel( DWORD* pdwARGB, 
									  DWORD dwWidth, 
									  DWORD dwHeight,
									  BYTE** ppbyAlphaChannel );
BYTE* Buffer_ConvertARGBToAlpha3( DWORD* pdwARGB, DWORD dwWidth, DWORD dwHeight );
DWORD Buffer_ConvertRGBToJpg( BYTE* pRGB, DWORD dwWidth, DWORD dwHeight, int nQuality, BYTE** ppJpgBuffer );
#endif